package com.pgytesting.secondhandcar.dao;

import com.pgytesting.secondhandcar.model.SalesCommissionSettlement;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author : frosty0804@gmail.com
 * @version : v1.0
 * @projectName : secondhandcar
 * @className : SalesCommissionSettlementDao
 * @description : TODO(一句话描述该类的功能)
 * @date : 2019/8/29 17:43
 */
@Mapper
public interface SalesCommissionSettlementDao {

    /**
     * 插入数据
     *
     * @param salesCommissionSettlement 实体模型
     * @return
     */
    int insert(SalesCommissionSettlement salesCommissionSettlement);

    /**
     * 查询全部数据
     *
     * @param mcpCarUserNumber 销售ID
     * @return
     */
    List<SalesCommissionSettlement> queryAll(String mcpCarUserNumber);


    /**
     * 更新数据
     *
     * @param salesCommissionSettlement
     * @return
     */
    int update(SalesCommissionSettlement salesCommissionSettlement);
}
